//
//  CMSChartsViewModel.h
//  CMSCharts
//
//  Created by symbio on 2023/2/17.
//

#import <Foundation/Foundation.h>
#import "CMSChartsContentModel.h"
#import "CMSChartsConfigModel.h"

NS_ASSUME_NONNULL_BEGIN

@interface CMSChartsViewModel : NSObject
/// 行情数据
@property (nonatomic, strong) NSArray<NSDictionary *> *arrChartData;

/// 转换后的数据
@property (nonatomic, strong) NSArray<CMSChartsContentModel *> *containerModels;
/// 配置列表
@property (nonatomic, strong) NSArray<CMSChartsConfigModel *> *chartConfigs;
@property (nonatomic, strong, readonly) NSArray<CMSChartsConfigModel *> *visibleChartConfigs;
@property (nonatomic, strong, readonly) NSArray<CMSChartsConfigModel *> *invisibleChartConfigs;
/// 是否横屏显示
@property (nonatomic, assign) BOOL isHorizontalScreen;

/// 当前使用的配置模型
@property (nonatomic, strong) CMSChartsConfigModel *currentConfigModel;
@property (nonatomic, assign, readonly) NSInteger currentIndex;


- (void)reloadData;
@end

NS_ASSUME_NONNULL_END
